package cn.wolfcode.edu.service;

import cn.wolfcode.edu.domain.Schedule;
import cn.wolfcode.edu.query.ScheduleQueryObject;
import cn.wolfcode.edu.util.PageResult;

import java.util.List;

/**
 * Created by ASUS on 2018/7/10.
 */
public interface IScheduleService {
    //查询所有的课程表信息
    PageResult query(ScheduleQueryObject qo);

    /**
     * 保存课表
     * @param schedule
     */
    void saveSchedule(Schedule schedule);

    /**
     * 编辑课表
     * @param schedule
     */
    void updateSchedule(Schedule schedule);

    /**
     * 根据课程id删除课程
     * @param scheduleId
     */
    void deleteSchedule(Long scheduleId);

    /**
     * 高级查询
     * @param qo
     * @return
     */
    List<Schedule> queryForList(ScheduleQueryObject qo);
}
